package com.am.lottery.db.schema

import com.am.lottery.db.entity.LotteryEntity
import org.ktorm.schema.Table
import org.ktorm.schema.date
import org.ktorm.schema.long
import org.ktorm.schema.varchar

object Lottery : Table<LotteryEntity>("lottery") {
    val id = long("id").primaryKey().bindTo { it.id }
    val drawNum = varchar("draw_num").bindTo { it.drawNum }
    val drawResult = varchar("draw_result").bindTo { it.drawResult }
    val unSortDrawResult = varchar("un_sort_draw_result").bindTo { it.unSortDrawResult }
    val drawDate = date("draw_date").bindTo { it.drawDate }
}